'Declaration Public Overloads Shared Sub Pin(Of T As {New, Struct})( _ ByRef source As T, _ ByVal pinAction As Action(Of IntPtr) _ )
public static void Pin<T>( ref T source, Action<IntPtr> pinAction ) where T: new(), struct
Parameters
- source
- The source.
- pinAction
- The pin action to perform on the pinned pointer.
Type Parameters
- T
- The type of the structure to pin.